﻿using System;

namespace Tools.MAME
{
    ///-------------------------------------------------------------------------------------------------
    /// <summary> Xml constants used for parsing mame.xml. </summary>
    ///-------------------------------------------------------------------------------------------------
    internal static class XmlConst
    {
        public const int CONFIG_VERSION = 10;

        public const String MAME_NODE = "mame";
        public const String GAME_NODE = "game";
        public const String DESCRIPTION_NODE = "description";
        public const String YEAR_NODE = "year";
        public const String MANUFACTURER_NODE = "manufacturer";
        public const String ROM_NODE = "rom";
        public const String DISK_NODE = "disk";
        public const String DEVICE_REF_NODE = "device_ref";
        public const String SAMPLE_NODE = "sample";
        public const String CHIP_NODE = "chip";
        public const String DISPLAY_NODE = "display";
        public const String SOUND_NODE = "sound";
        public const String INPUT_NODE = "input";
        public const String DIPSWITCH_NODE = "dipswitch";
        public const String DIPVALUE_NODE = "dipvalue";        
        public const String PORT_NODE = "port";
        public const String ADJUSTER_NODE = "adjuster";
        public const String DRIVER_NODE = "driver";
        public const String CONTROL_NODE = "control";
        public const String ANALOG_NODE = "analog";
        public const String DEVICE_NODE = "device";
        public const String INSTANCE_NODE = "instance";
        public const String EXTENSION_NODE = "extension";
        public const String BIOSSET_NODE = "biosset";
        public const String SOFTWARE_LIST_NODE = "softwarelist";
        public const String RAM_OPTION_NODE = "ramoption";
        public const String CONFIGURATION_NODE = "configuration";
        public const String CONFIGURATION_SETTING_NODE = "confsetting";
        public const String SLOT_NODE = "slot";
        public const String SLOT_OPTION_NODE = "slotoption";

        public const String BUILD_ATTR = "build";
        public const String DEBUG_ATTR = "debug";
        public const String MAME_CONFIG_ATTR = "mameconfig";        
        public const String NAME_ATTR = "name";
        public const String SOURCE_FILE_ATTR = "sourcefile";
        public const String IS_BIOS_ATTR = "isbios";
        public const String IS_DEVICE_ATTR = "isdevice";
        public const String IS_MECHANICAL_ATTR = "ismechanical";
        public const String RUNNABLE_ATTR = "runnable";
        public const String CLONE_OF_ATTR = "cloneof";
        public const String ROM_OF_ATTR = "romof";
        public const String SAMPLE_OF_ATTR_ = "sampleof";
        public const String SIZE_ATTR = "size";
        public const String CRC_ATTR = "crc";
        public const String SHA1_ATTR = "sha1";
        public const String REGION_ATTR = "region";
        public const String OFFSET_ATTR = "offset";
        public const String TYPE_ATTR = "type";
        public const String TAG_ATTR = "tag";
        public const String CLOCK_ATTR = "clock";
        public const String ROTATE_ATTR = "rotate";
        public const String FLIPX_ATTR = "flipx";
        public const String WIDTH_ATTR = "width";
        public const String HEIGHT_ATTR = "height";
        public const String REFRESH_ATTR = "refresh";
        public const String PIXCLOCK_ATTR = "pixclock";
        public const String HTOTAL_ATTR = "htotal";
        public const String HBEND_ATTR = "hbend";
        public const String HBSTART_ATTR = "hbstart";
        public const String VTOTAL_ATTR = "vtotal";
        public const String VBEND_ATTR = "vbend";
        public const String VBSTART_ATTR = "vbstart";
        public const String CHANNELS_ATTR = "channels";
        public const String TILT_ATTR = "tilt";
        public const String PLAYERS_ATTR = "players";
        public const String BUTTONS_ATTR = "buttons";
        public const String COINS_ATTR = "coins";
        public const String SERVICE_ATTR = "service";
        public const String MASK_ATTR = "mask";
        public const String VALUE_ATTR = "value";
        public const String DEFAULT_ATTR = "default";
        public const String STATUS_ATTR = "status";
        public const String EMULATION_ATTR = "emulation";
        public const String COLOR_ATTR = "color";
        public const String SOUND_ATTR = "sound";
        public const String GRAPHIC_ATTR = "graphic";
        public const String COCKTAIL_ATTR = "cocktail";
        public const String PROTECTION_ATTR = "protection";
        public const String SAVESTATE_ATTR = "savestate";
        public const String PALETTESIZE_ATTR = "palettesize";
        public const String MINIMUM_ATTR = "minimum";
        public const String MAXIMUM_ATTR = "maximum";
        public const String SENSITIVITY_ATTR = "sensitivity";
        public const String KEY_DELTA_ATTR = "keydelta";
        public const String REVERSE_ATTR = "reverse";
        public const String WAYS_ATTR = "ways";
        public const String WAYS2_ATTR = "ways2";
        public const String WAYS3_ATTR = "ways3";
        public const String INTERFACE_ATTR = "interface";
        public const String BRIEF_NAME_ATTR = "briefname";
        public const String BIOS_ATTR = "bios";
        public const String MERGE_ATTR = "merge";
        public const String OPTIONAL_ATTR = "optional";
        public const String INDEX_ATTR = "index";
        public const String WRITABLE_ATTR = "writable";
        public const String FILTER_ATTR = "filter";
        public const String DEV_NAME_ATTR = "devname";
    }
}
